package com.itheima.listener;

import org.springframework.boot.context.event.ApplicationStartingEvent;
import org.springframework.context.ApplicationListener;

/**
 * ClassName: MyListener
 * Description:
 * Date: 2023/03/24 PM 10:49:52
 * <p>
 * project: springboot
 * package: com.itheima.listener
 * email: 1085844536@qq.com
 * version:
 *
 * @author WangGuojian
 */
public class MyListener implements ApplicationListener<ApplicationStartingEvent> {

    @Override
    public void onApplicationEvent(ApplicationStartingEvent event) {
        System.out.println("=================================");
        System.out.println(event.getSource());
        System.out.println(event.getClass());
        System.out.println(event.getTimestamp());
    }
}
